<template>
	<view>
		<view class="container">
			<view class="infoItem flex flexBei">
				<text>隐私设置</text>
				<view class="iconfont icon-arrow-down inview"></view>
			</view>
			<view class="infoItem flex flexBei" @click="navSetUser">
				<text>编辑资料</text>
				<view class="iconfont icon-arrow-down inview"></view>
			</view>
			<view class="infoItem flex flexBei">
				<text>订阅模式</text>
				<u-switch v-model="checked" ></u-switch>
			</view>
		</view>
		<!-- 退出登录 -->
		<!-- <button class="CommentBtn" @click="loginout">退出登录</button> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
			  checked: false	
			}
		},
		methods: {
		  // 跳转到编辑用户信息页面
		  navSetUser () {
			  uni.navigateTo({
			  	url: '../setuserinfo/setuserinfo'
			  })
		  }
		}
	}
</script>

<style lang="less" scoped>
.container {
	margin-top: 30rpx;
}
.infoItem {
	padding: 0 24rpx;
	height: 92rpx;
	background-color: #fff;
	line-height: 92rpx;
	border-bottom: 1rpx solid #fafafa;
    align-items: center;
}
</style>
